package net.tngou.iask.action.my;

import java.io.IOException;

import javax.servlet.ServletException;

import net.tngou.iask.action.BaseAction;
import net.tngou.iask.entity.Statistic;
import net.tngou.iask.service.StatisticService;

public class IndexAction extends BaseAction {

	@Override
	public void execute() throws ServletException, IOException {
		
		
		StatisticService service = new StatisticService();
		Statistic patient = service.getPatient(user.getMain());
		Statistic access =service.getAccess(user.getMain());
		Statistic cure =service.getCure(user.getMain());
		Statistic role = service.getRole(user.getMain());
		root.put("prole", role);
		root.put("patient", patient);
		root.put("access", access);
		root.put("cure", cure);
		printFreemarker("my/index.ftl", root);
	}
}
